/**
 * Author: Daniel
 * Date: 20.08.13
 */

public class TestPetli {
    public static void main(String[] args) {

        int[] tablica = { 1, 3, 5, 9, 4 };

        System.out.println("Zwykła pętla for");
        for (int i = 0; i < tablica.length; i++) {
            System.out.print(tablica[i] + " ");
        }

        System.out.println("\nPętla for each");
        for(int wartosc : tablica){
            System.out.print(wartosc + " ");
        }
    }
}
